﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LDSP.Helper;

namespace LDSP.UI.EnterpriseCommonUser
{
    public partial class Left : LDSP.BRL.BaseEnterpriseCommonUserPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Label1.Text = "    您好, " + (LoginUser == null ? "" : LoginUser.Name) + "!";
            var list = LoginUser.Enterprise.GetModuleList();
            if (!list.Contains(ModuleName.CaseLib))
            {
                ph_caseLib.Controls.Clear();
            }
            if (!list.Contains(ModuleName.ChemicalMng))
            {
                ph_chemicalMng.Controls.Clear();
            }
        }

        protected void lnkBtnExit_Click(object sender, EventArgs e)
        {
            Logout();
        }
    }
}